<!DOCTYPE html>
<html lang="zh_CN" xmlns:th="http://www.thymeleaf.org"
      xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout">

<div class="row">
    <div class="col-sm-12" th:if="${#lists.isEmpty(dataMap['list'])}">
        <div class="ibox m-b-lg">
            <div class="noDataTipsBox">
                <p><span class="c-4e fs16">亲，还没有数据~~~</span></p>
            </div>
        </div>
    </div>

    <div class="col-lg-4 col-md-6" th:if="!${#lists.isEmpty(dataMap['list'])}" th:each="exam : ${dataMap['list']}">
        <div class="ibox m-b-lg">
            <div class="ibox-content">
                <div class="team-members clearfix">
                        <span class="pull-left m-r">
                            <img th:if="${#maps.isEmpty(exam['user'])} or ${exam['user']['avatar']}==null or ${exam['user']['avatar']}==''" alt="member" class="img-circle" th:src="@{{path}/admin/v3/img/default/admin_userpace.jpg?v={v}(path=${staticPath},v=${v})}">
                            <img alt="member" th:if="!${#maps.isEmpty(exam['user'])} and ${exam['user']['avatar']}!=null and ${exam['user']['avatar']}!=''" class="img-circle" th:src="${exam['user']['avatar']}">
                        </span>
                    <div>
                        <span class="c-999 fs14">账号：</span>
                        <span class="c-222 fs14">
                                <span th:if="${#maps.isEmpty(exam['user'])} or ${exam['user']['mobile']}==null or ${exam['user']['mobile']}==''" class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="手机">—/</span>
                                <span th:if="!${#maps.isEmpty(exam['user'])} and ${exam['user']['mobile']}!=null and ${exam['user']['mobile']}!=''" class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="手机" th:text="${exam['user']['mobile']}+'/'"></span>
                                <span th:if="${#maps.isEmpty(exam['user'])} or ${exam['user']['email']}==null or ${exam['user']['email']}==''" class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="邮箱">—/</span>
                                <span th:if="!${#maps.isEmpty(exam['user'])} and ${exam['user']['email']}!=null and ${exam['user']['email']}!=''" class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="邮箱" th:text="${exam['user']['email']}+'/'"> </span>
                                <span th:if="${#maps.isEmpty(exam['user'])} or ${exam['user']['loginAccount']}==null or ${exam['user']['loginAccount']}==''"  class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="账号">—</span>
                                <span th:if="!${#maps.isEmpty(exam['user'])} and ${exam['user']['loginAccount']}!=null and ${exam['user']['loginAccount']}!=''" class="c-master fs14 c-222" data-toggle="tooltip" data-placement="bottom" data-original-title="账号" th:text="${exam['user']['loginAccount']}"> </span>
                            </span>
                    </div>
                </div>
                <div class="row">
                    <div class="col-sm-6">
                        <span> 通过状态 </span>
                        <div><span class="badge" th:attrappend="data-accuracy=((${exam['userScore']}/${exam['score']})*100)"></span></div>
                    </div>
                    <div class="col-sm-6 text-right">
                        <span> 得分率 </span>
                        <h2>
                            <span class="font-bold" th:text=" ${#numbers.formatDecimal((exam['userScore']*100.0/exam['score']*100.0)/100,1,2,'POINT')}+'%'" ></span>
                        </h2>
                    </div>
                </div>
                <div class="hr-line-dashed"></div>
                <div class="text-center">
                    <a  th:attrappend="data-id=${exam['id']}" class="openExam"><button type="button" class="btn btn-outline btn-white ml10">查看详情</button></a>
                </div>

            </div>
        </div>
    </div>
</div>


<div data-th-replace="layout/adminPage"></div>